package com.linkage.educloud.ah.mvp.contract;

import com.linkage.educloud.ah.bean.ClazzGroup;
import com.linkage.educloud.ah.mvp.ABasicPresenter;
import com.linkage.educloud.ah.mvp.IBasicView;
import com.linkage.educloud.ah.mvp.ICommonModel;

import java.util.List;

import io.reactivex.Observable;

/**
 * <desc>
 * Created by The Moss on 2018/11/7.
 */

public interface IContactContract {
    interface IView extends IBasicView {
        void onLoadDatasFromServer(boolean isSuccess, List<ClazzGroup> groupsg);
        void onLoadDatasFromLocal(boolean isSuccess, List<ClazzGroup> groups);
    }

    abstract class IPresenter<T extends IBasicView> extends ABasicPresenter {

        public IPresenter(T iView) {
            super(iView);
        }

        public abstract void loadDatasFromLocal();

        public abstract void loadDatasFromServer();
    }
    interface IModel extends ICommonModel {
        Observable loadDatasFromLocal();
    }
}
